from log import sent_log
import pytest
import log as f

if __name__ == '__main__':
    # sent_log()
    # pytest.main(['test_a.py','-s','--alluredir=./data','--clean-alluredir'])
    # import os
    # os.system('allure generate ./data -o htmlreport --clean')
    # f.sent_email(['./log.log',r"C:\Users\张震海\Desktop\dfs\learn\learn3\htmlreport\index.html"])
    sent_log()
    pytest.main(['test_a.py','-s','--alluredir=./data','--clean-alluredir'])
    import os
    os.system('allure generate ./data -o htmlreport --clean')
    f.sent_email(['./log.log',])